package com.ddpt.permission.config;

import com.lh.center.common.web.session.SessionUserFetch;
import org.springframework.stereotype.Component;

@Component
public class CustomSessionUserFetch implements SessionUserFetch<PermissionSessionUser> {

    @Override
    public PermissionSessionUser getUser(String token) {
        PermissionSessionUser user = new PermissionSessionUser();
        user.setToken("PermissionToken");
        user.setAge(111);
        user.setUserName("PermissionUserName");
        user.setSecret("PermissionSecret");
        user.setUserId(22L);
        return user;
    }

    @Override
    public void refresh(String token) {

    }
}
